// 导出属于员工的路由规则
import Layout from '@/layout'
//  {  path: '', component: '' }
// 每个子模块 其实 都是外层是layout  组件位于layout的二级路由里面
export default {
  path: '', // 路径
  name: '', // 给路由规则加一个name
  component: Layout, // 组件
  // redirect: '/transit/car-models',
  meta: {
    title: '员工管理', // meta属性的里面的属性 随意定义 但是这里为什么要用title呢， 因为左侧导航会读取我们的路由里的meta里面的title作为显示菜单名称
    iconImg: require('@/icons/iconMenu/yuangong.png')
  },
  children: [
    {
      path: '/branches/operational-range',
      component: () => import('@/views/employee/operational-range'),
      meta: {
        title: '快递员管理'
      }
    },
    {
      path: '/transit/driver',
      component: () => import('@/views/employee/driver'),
      meta: {
        title: '司机管理'
      }
    },
    {
      path: '/transit/workArrange-manage',
      component: () => import('@/views/employee/workArrange-manage'),
      meta: {
        title: '排版管理'
      }
    },
    {
      path: '/branches/MapContent',
      component: () => import('@/views/employee/map-content'),
      hidden: true,
      meta: {
        title: '作业范围分配'
      }
    },
    {
      path: '/transit/driver-detail',
      component: () => import('@/views/employee/driver-detail'),
      hidden: true,
      meta: {
        title: '司机详情'
      }
    },
    {
      path: '/transit/workArrange-setting',
      component: () => import('@/views/employee/workArrange-setting'),
      hidden: true,
      meta: {
        title: '排班设置'
      }
    }
  ]
}
